package com.knowif.backend.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.knowif.pojo.TutorInfo;
import com.knowif.service.Tutor_service;
import com.knowif.system.model.RestBean;

@Service
public class TutorService {
	
	
	@Autowired
	private Tutor_service tutor_service;
	
	/**
	 * @author: xingyao 
	 * @Description:  保存导师信息
	 * @param tutorInfo
	 * @return
	 */
	public RestBean<?> saveTutor(TutorInfo tutorInfo){
		return tutor_service.saveTutor(tutorInfo);
	}
	
	/**
	 * @author: xingyao 
	 * @Description:  删除导师信息
	 * @param tutorId
	 * @return
	 */
	public RestBean<?> deleteTutor(Integer userId){
		return tutor_service.deleteTutor(userId);
	}
	
	
	/**
	 * @author: xingyao 
	 * @Description:  批量删除导师信息
	 * @param tutorId
	 * @return
	 */
	public RestBean<?> deleteTutors(List<Integer> userIds){
		return tutor_service.deleteTutors(userIds);
	}

}
